package com.itheima.dao;

import com.itheima.pojo.FormDataAdvice;
import com.itheima.pojo.Intervention;

import java.util.HashMap;
import java.util.List;

public interface InterventionDao {
    long findId(int id);

    void add(FormDataAdvice formDataAdvice);

    void setInterventionAndExercise(HashMap<String, Integer> map);

    void setInterventionAndfood(HashMap<String, Integer> map);

    FormDataAdvice findById(Integer interventionId);

    List<Integer> findexerciseIdsByinterventionId(Integer interventionId);

    List<Integer> findfoodIdsByinterventionId(Integer interventionId);



    void edit(FormDataAdvice formDataAdvice);

    void deleteFoodId(int id);

    void deleteExerciseId(int id);

    String findOrderStatus(int id);

    Intervention findByOrderId(Integer orderId);
}
